<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<TITLE>新建日程安排</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gbk" />
<LINK href="<%=basePath%>/css/top.css" type=text/css rel=stylesheet />
<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet">
<LINK href="<%=basePath%>/css/popcalendar.css" type=text/css
	rel=stylesheet />
<SCRIPT src="<%=basePath%>/js/popcalendar.js"></SCRIPT>
<SCRIPT src="<%=basePath%>/js/function.js"></SCRIPT>
<SCRIPT type="text/javascript">
function CheckForm()
{
   if(document.Form1.txtSendTimeMIN.value==""||!checkIsDate(document.Form1.txtSendTimeMIN.value))
   {
	 alert("开始日期不正确");
	 document.Form1.txtSendTimeMIN.focus();
	 return (false);
   }
   
   if(!checkIsDate(document.Form1.txtSendTimeMAX.value))
   {
	 alert("结束日期不正确");
	 document.Form1.txtSendTimeMAX.focus();
	 return (false);
   }
   return (true);
}
</SCRIPT>
</HEAD>
<BODY topMargin=5>
<FORM id=Form1 name="Form1" action="ScheduleServlet" method="post">
<DIV><INPUT id=__VIEWSTATE type=hidden value=name=__VIEWSTATE />
</DIV>
<TABLE class=small cellSpacing=0 cellPadding=3 width="100%" border=0>
	<TBODY>
		<TR>
			<TD class=Big><IMG src="<%=basePath%>/img/office/infofind.gif"
				align=absMiddle /> <SPAN class=big3>&nbsp;新建日程安排</SPAN></TD>
		</TR>
	</TBODY>
</TABLE>
<DIV id=pnlMain>
<TABLE class=small cellSpacing=1 cellPadding=2 width=450 align=center
	bgColor=#000000 border=0>
	<TBODY>
		<TR>
			<TD class=TableData noWrap>所属人：</TD>
			<TD class=TableData><INPUT class=BigInput id=txtContent size=40
				name="txtPersonName" /></TD>
		</TR>
		<TR>
			<TD class=TableData noWrap width=100>日期：</TD>
			<TD class=TableData><INPUT class=BigInput id=txtSendTimeMIN
				maxLength=10 size=12 name="txtSendTimeMIN" /> <IMG
				style="CURSOR: hand"
				onclick="popUpCalendar(this,txtSendTimeMIN,'yyyy-mm-dd','');"
				src="<%=basePath%>/img/office/calendar.gif" align=absMiddle border=0 />
			至&nbsp; <INPUT class=BigInput id=txtSendTimeMAX maxLength=10 size=12
				name=txtSendTimeMAX /> <IMG style="CURSOR: hand"
				onclick="popUpCalendar(this,txtSendTimeMAX,'yyyy-mm-dd','');"
				src="<%=basePath%>/img/office/calendar.gif" align=absMiddle border=0 />
			</TD>
		</TR>
		<TR>
			<TD class=TableData noWrap>事务类型</TD>
			<TD class=TableData><SELECT class=BigSelect id=selectCalType
				name="selectCalType">
				<OPTION value="所有" selected>所有</OPTION>
				<OPTION value="个人事务">个人事务</OPTION>
				<OPTION value="工作事务">工作事务</OPTION>
			</SELECT></TD>
		</TR>
		<TR>
			<TD class=TableData noWrap>事务内容</TD>
			<TD class=TableData><TEXTAREA class=BigInput id="txtNote1"
				name="txtContent" rows=6 cols=70></TEXTAREA></TD>
		</TR>
		<TR>
			<TD class=TableData noWrap>备注</TD>
			<TD class=TableData><INPUT class=BigInput id=txtContent size=40
				name="txtRemark" /></TD>
		</TR>
		<TR class=TableControl align=middle>
			<TD noWrap colSpan=2>&nbsp; <INPUT type="submit" class=BigButton
				onClick="return CheckForm();" value="提交" /></TD>
		</TR>

	</TBODY>
</TABLE>
</DIV>
<DIV><INPUT id="new_agenda" type="hidden" value="add"
	name="agenda" /></DIV>
</FORM>
</BODY>
</HTML>
